#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
int main()
{
    int fd = open("/proc/jihaixuan", O_RDWR);
    if (fd < 0)
    {
        printf("fd open error\n");
        exit(1);
    };
    char write_data = getchar();
    int write_count = write(fd, &write_data, 1);
    if (write_count < 0)
    {
        printf("write error\n");
        exit(1);
    }
    return 0;
}